package com.magicstone.common.Time;

import java.util.Date;

public class Ticker {
	private static Date _begin = new Date();
	private static Date _end = new Date();

	public static void tic(){
		_begin = new Date();
	}
	
	public static long toc(){
		_end = new Date();
		long elapsed = _end.getTime() - _begin.getTime();
		_begin = _end;
		return elapsed;
	}
}
